﻿<div id="navigation" >
	<h1 style="font-size:24px;margin: 0;padding: 0;float:left;">工程管理系统</h1>
		<div style="float:right;padding-right:20px;line-height:30px;">
			<sec:ifLoggedIn>
					<span >当前用户： </span><sec:username/> | <g:link controller="logout">退出</g:link>
			</sec:ifLoggedIn>
			<sec:ifNotLoggedIn>
				<span><g:link controller='login' action='auth'> 登录 </g:link></span>
			</sec:ifNotLoggedIn>
		</div>
</div>
<div id="menu">
	<div class="ngtab clearFix">
		
		<div id="payment" >
			<g:link controller='workPanel'>工作面板</g:link>
		</div>
		
		<sec:ifAllGranted roles="ROLE_ADMIN">
			<div id="nav_plan" class="nu">
				<g:link controller="projectPlan" action="list">计划管理</g:link>
			</div>
		</sec:ifAllGranted>
		<sec:ifAllGranted roles="ROLE_ADMIN">
			<div id="nav_plan">
				<g:link controller="quality" action="list">质量管理</g:link>
			</div>
		</sec:ifAllGranted>
		<sec:ifAllGranted roles="ROLE_ADMIN">
			<div id="nav_plan">
				<g:link controller="event" action="list">安全管理</g:link>
			</div>
		</sec:ifAllGranted>
		<sec:ifAllGranted roles="ROLE_ADMIN">
			<div id="nav_plan">
				<g:link controller="workplan" action="list">工作计划管理</g:link>
			</div>
		</sec:ifAllGranted>
		<sec:ifAllGranted roles="ROLE_ADMIN">
			<div id="nav_report"  class="nu">
				<g:link controller='quantitiesStat' action='list'>统计报表</g:link>
			</div>
		</sec:ifAllGranted>
	<sec:ifAllGranted roles="ROLE_ADMIN">
			<div id="nav_params"  class="nu">
				<g:link controller='params' action='list'>基础设置</g:link>
			</div>
		</sec:ifAllGranted>
		<sec:ifAllGranted roles="ROLE_ADMIN">
			<div id="nav_system"  class="nu">
				<g:link controller='user' action='list'>系统管理</g:link>
			</div>
		</sec:ifAllGranted>
    </div>
</div>

<div style="width: auto;height:auto;display:none;" id="plan_menu">
	<ul class="menu-list">
		<sec:access url="/producttype/list">
			<li>
				<g:link controller='projectPlan' action='list'>项目计划</g:link>
			</li>
		</sec:access>
		<sec:access url="/product/list">
			<li>
				<g:link controller='projectExecutePlan' action='list'>执行计划</g:link>
			</li>
		</sec:access>
		<sec:access url="/constructionReport/list">
			<li>
				<g:link controller='constructionReport' action='list'>施工报量</g:link>
			</li>
		</sec:access>
	</ul>
</div>
<div style="width: auto;height:auto;display:none;" id="system_menu">
	<ul class="menu-list">
		<sec:access url="/user/list">
			<li >
				<g:link controller='user' action='list'>用户管理</g:link>
			</li>
		</sec:access>
		<li >
			<g:link controller='role' action='list'>角色管理</g:link>
		</li>
		<li>
			<g:link controller='resource' action='list'>资源管理</g:link>
		</li>

	</ul>
</div>
<div style="width: auto;height:auto;display:none;" id="report_menu">
	<ul class="menu-list">
		<sec:access url="/quantitiesStat/list">
			<li >
				<g:link controller='quantitiesStat' action='list'>工程量统计报表</g:link>
			</li>
		</sec:access>
	</ul>
</div>
<div style="width: auto;height:auto;display:none;" id="params_menu">
	<ul class="menu-list">
		<sec:access url="/params/list">
			<li >
				<g:link controller='params' action='list'>数据字典配置</g:link>
			</li>
		</sec:access>
		<sec:access url="/employee/list">
			<li >
				<g:link controller='employee' action='list'>人员分布信息</g:link>
			</li>
		</sec:access>
		<sec:access url="/quantitiesInfo/list">
			<li >
				<g:link controller='quantitiesInfo' action='list'>工程量信息配置</g:link>
			</li>
		</sec:access>
	</ul>
</div>

<script type="text/javascript">
      $(document).ready(function(){
      		$("#nav_system").powerFloat({target: $("#system_menu")});
      		$("#nav_plan").powerFloat({target: $("#plan_menu")});
      		$("#nav_report").powerFloat({target: $("#report_menu")});
      		$("#nav_params").powerFloat({target: $("#params_menu")});
      });
 </script>
